<template>
  <!-- 去挂号 -->
  <van-nav-bar :title="title" left-arrow @click-left="onClickLeft" />
</template>

<script>
import { useRouter } from "vue-router";

export default {
  setup(props) {
    const router = useRouter();

    const title = props.title ? props.title : "微脉";

    const onClickLeft = () => {
      router.go(-1);
    };

    return {
      title,
      onClickLeft,
    };
  },
};
</script>

<style lang="less">
.van-icon-arrow-left {
  color: #000 !important;
}
</style>
